package com.antt.cn.test3.views;

import android.content.Context;
import android.util.AttributeSet;

import com.antt.cn.test3.utils.AntLog;

/**
 * Created by Ant on 2017/5/2  14:28
 * <p>
 * <p>
 *
 * @version 1.0.0
 * @auther Ant
 */

public class AntView extends android.support.v7.widget.AppCompatButton {
    public AntView(Context context) {
        super(context);
        initThisView(context, null, 0);
    }

    public AntView(Context context, AttributeSet attrs) {
        super(context, attrs);

        initThisView(context, attrs, 0);
    }

    public AntView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);

        initThisView(context, attrs, defStyleAttr);
    }

    private void initThisView(Context context, AttributeSet attrs, int defStyleAttr) {
        AntLog.i("view constranit");
    }

    @Override
    protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
        super.onLayout(changed, left, top, right, bottom);
        AntLog.i("view onLayout()");
    }


}
